package cyc.learn.mode.adapter.method;

/**
 * 适配器类
 * 将Original类适配到Targetable接口上
 * 只需要实现targetMethod()方法，originalMethod()已经在Original中实现了
 * 将Original类适配到Targetable接口上
 */
public class Adapter extends Original implements Targetable {

    @Override
    public void targetMethod() {
        System.out.println("this is a target method...");
    }
}
